function getQueryString(name) {
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
    var url = decodeURI(decodeURI(window.location.search))
    var r = url.substr(1).match(reg);
    if (r != null) return unescape(r[2]);
    return null;
}


function logout() {
    $.ajax({
        type: 'get',
        url:"http://123.56.219.116:8080/virtualcat/manage/user/logout",
        contentType: false,
    }).success(function (data) {
        location.href="login.html";
        return;
    }).error(function () {
        alert("失败");
    });
}